<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>定时任务修改</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="/gradesign/css/bootstrap.min.css"/>
	<link href="/gradesign/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen"/>
	<!-- Latest compiled and minified CSS -->
	<link rel="stylesheet" type="text/css" href="/gradesign/css/sweetalert.css"/>
	<link rel="stylesheet" type="text/css" href="/gradesign/css/bootstrap-table.min.css"/>
    <style type="text/css">
    	#addIncomeModal,#editIncomeModal{margin-top:5%;margin-left:5%;margin-right:5%}
    	.second,.third{
            display: none;
        }
		.container{
			margin-top:1%;
		}
		body{
        background:transparent;
   		}
   		.form-group{
   			margin-top:10px;
   		}
   		#content{width:40%;margin-left:30%;border:1px solid #f4f4f4}
   		#memberAdd{margin:5%}
   		form{margin: 30px;}
    </style>
</head>
<body>
<div class="container">
	<div id="content">
		<div id="mailSend">
		<form th:each="timertask : ${timertask}" >
			<div class="form-group" style="text-align:center">
				<h3 style="align:center">定时任务修改</h3>
			</div>
			<div class="form-group">
				<label for="timerTaskName">任务名称</label>
				<input type="text" id="timerTaskName" class="form-control" th:value="${timertask.taskname}" readonly="readonly"/>
			</div>
			<div class="form-group">
				<label for="timerTaskCron">任务配置</label>
				<input type="text" id="timerTaskCron" class="form-control" th:value="${timertask.cron}" />
			</div>
			<div class="form-group" style="text-align:center">
				<button type="button" class="btn btn-primary" style="width:100px" id="emailBackBtn" onclick="back_timer_task()">返回</button>
				<button type="button" class="btn btn-primary" style="width:100px" id="emailBackBtn" onclick="save()">保存</button>
			</div>
		</form>
	</div>
	</div>
		<div class="form-group" style="text-align: center">
			<h4 class="text-left">配置帮助：</h4>
			<p class="text-left">Seconds : 可出现", - * /"四个字符，有效范围为0-59的整数</p>
			<p class="text-left">Minutes : 可出现", - * /"四个字符，有效范围为0-59的整数</p>
			<p class="text-left">Hours : 可出现", - * /"四个字符，有效范围为0-23的整数</p>
			<p class="text-left">DayofMonth : 可出现", - * / ? L W
				C"八个字符，有效范围为0-31的整数</p>
			<p class="text-left">Month : 可出现", - *
				/"四个字符，有效范围为1-12的整数或JAN-DEc</p>
			<p class="text-left">DayofWeek : 可出现", - * / ? L C
				#"四个字符，有效范围为1-7的整数或SUN-SAT两个范围。1表示星期天，2表示星期一， 依次类推</p>
			<p class="text-left">Year : 可出现", - * /"四个字符，有效范围为1970-2099年</p>
		</div>
	</div>
</body>
<script type="text/javascript" src="/gradesign/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/gradesign/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/gradesign/js/yongqi.js"></script>
<script type="text/javascript" src="/gradesign/js/sweetalert.min.js"></script>
<script type="text/javascript" src="/gradesign/js/bootstrap-datetimepicker.min.js" charset="UTF-8"></script>
<script type="text/javascript" src="/gradesign/js/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.11.1/bootstrap-table.min.js"></script>
<!-- Latest compiled and minified Locales -->
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.11.1/locale/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript">
	function back_timer_task(){
		window.location.href="/gradesign/back/timertask/index";
	}
	function save(){
		var params = {};
		params.taskname = $("#timerTaskName").val();
		params.cron = $("#timerTaskCron").val();
		yongqi.allAjax("/gradesign/back/timertask/save",params,function(){
			swal("定时任务修改成功！","","success");
			window.setTimeout("window.location.href='/gradesign/back/timertask/index'",2000)
		})
	}
</script>
</html>